const Message = require('./Message');

class EndWithMeetingId extends Message {
	constructor(headerFields, routing) {
		routing = Object.assign({}, { sender: 'bbb-html5' }, routing)
		headerFields = Object.assign({}, { operation: 'end' }, headerFields)
		super(null, routing, headerFields);
		this.core.body = {}
	}

	set operation(event) {
		this.core.header['operation'] = event
	}

	setArgs(meetingId) {
		this.core.body['args'] = { meetingId }
	}

}

module.exports = EndWithMeetingId
